/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/* nixonFTP
 * FTP client version 0.1
 * Copyright (C) 2010 NIXON Development Corporation.
 * All rights reserved.
 * http://members.shaw.ca/nixon.com
*/

package nixonftp;

import java.awt.Toolkit;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;

public class NXIcon {
	public static ImageIcon folder;
	public static ImageIcon[] small = new ImageIcon[5];
	public static ImageIcon expand;
	public static ImageIcon expandSelected;
	public static List iconList = new ArrayList();
	public static ImageIcon columns;
	public static ImageIcon detail;
	public static ImageIcon filters;
	public static ImageIcon filtersSmall;
	public static ImageIcon connect;

	//menu icons
	public static ImageIcon download;
	public static ImageIcon downloading;
	public static ImageIcon upload;
	public static ImageIcon uploading;
	public static ImageIcon addFolder;
	public static ImageIcon trash;
	public static ImageIcon list;
	public static ImageIcon cancel;
	public static ImageIcon pause;

	public static ImageIcon icon;

	public void loadIcons() {
		ClassLoader cldr = this.getClass().getClassLoader();
		Toolkit kit = Toolkit.getDefaultToolkit();
		icon = new ImageIcon(cldr.getResource("icons/icon32.png"));

		folder = new ImageIcon(cldr.getResource("icons/pre_folder.png"));
		small[0] = new ImageIcon(cldr.getResource("icons/sm_file.png"));
		small[1] = new ImageIcon(cldr.getResource("icons/sm_link.png"));
		small[2] = new ImageIcon(cldr.getResource("icons/sm_folder.png"));
		small[3] = new ImageIcon(cldr.getResource("icons/sm_drive.png"));
		small[4] = new ImageIcon(cldr.getResource("icons/home.gif"));
		expand = new ImageIcon(cldr.getResource("icons/expand.gif"));
		expandSelected = new ImageIcon(cldr.getResource("icons/expand_sel.gif"));
		columns = new ImageIcon(cldr.getResource("icons/columns.png"));
		detail = new ImageIcon(cldr.getResource("icons/detail.png"));
		filters = new ImageIcon(cldr.getResource("icons/eye.png"));
		filtersSmall = new ImageIcon(cldr.getResource("icons/eye_sm.png"));
		connect = new ImageIcon(cldr.getResource("icons/connect.png"));

		//menu
		download = new ImageIcon(cldr.getResource("icons/download.png"));
		downloading = new ImageIcon(cldr.getResource("icons/downloading.png"));
		upload = new ImageIcon(cldr.getResource("icons/upload.png"));
		uploading = new ImageIcon(cldr.getResource("icons/uploading.png"));
		addFolder = new ImageIcon(cldr.getResource("icons/addfolder.gif"));
		trash = new ImageIcon(cldr.getResource("icons/trash.png"));
		list = new ImageIcon(cldr.getResource("icons/list.png"));
		cancel = new ImageIcon(cldr.getResource("icons/stop.png"));
		pause = new ImageIcon(cldr.getResource("icons/pause.png"));

		try {
			iconList.add(ImageIO.read(cldr.getResource("icons/icon32.png")));
			iconList.add(ImageIO.read(cldr.getResource("icons/icon16.png")));
		} catch (IOException e) {
		}
	}
}
